package com.group02.community.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group02.community.entity.interaction.Interaction;
import com.group02.community.entity.interaction.ZyComment;
import com.group02.community.entity.interaction.ZyCommunityInteraction;
import com.group02.community.entity.vo.CommentVO;
import com.group02.community.entity.vo.InteractionVO;

import java.util.List;

public interface InteractionService extends IService<ZyCommunityInteraction> {

    IPage<InteractionVO> getAllInteraction(Long current, Long size, Interaction interaction);

    List<CommentVO> getCommentByInteractionId(String id);

    void updateCommentAndInteraction(String id);

    void updateCommentByCommentId(String commentId);

    List<InteractionVO> getAllInteractions();

    void saveComment(ZyComment zyComment);
}
